package id.co.rho.scoring.cid.client.helper;

import com.extjs.gxt.ui.client.mvc.AppEvent;
import com.extjs.gxt.ui.client.mvc.Dispatcher;

import id.co.rho.scoring.cid.client.mvc.AppEvents;

/**
 * Created by IntelliJ IDEA.
 * User: bungrudi
 * Date: 12/6/11
 * Time: 9:13 AM
 */
public class GXTHelper {
    public static void handleException(Throwable caught) {
        AppEvent errorEvent = new AppEvent(AppEvents.ExceptionCaught);
        errorEvent.setData(caught);
        Dispatcher.forwardEvent(errorEvent);
    }
}
